<template>
  <!-- 带电检测跳转电科院的详情页 -->
  <div class="iframes">
    <div class="iframes-main">
      <iframe :src="iframeUrl" frameborder="0"></iframe>
      <!-- <iframe src="http://10.193.23.21:28883/epribigdata/jsp/tg_zt/xinyi_zxjc/yczz.jsp?ssds=国网泰安供电公司&zzzt=null&yxzt=1" frameborder="0"></iframe> -->
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue, Prop } from "vue-property-decorator";
@Component
export default class extends Vue {
  get iframeUrl() {
    let list = this.$route.query.list;
    let urlType = this.$route.query.urlType;
    let url = "";
// debugger;
    switch (urlType) {
      case "ddjc":
        url =
          "http://10.193.23.21:28883/epribigdata/jsp/tg_zt/xyddjc/ycsb.jsp?" +
          list;
        break;
      case "yczz":
        url =
          "http://10.193.23.21:28883/epribigdata/jsp/tg_zt/xinyi_zxjc/yczz.jsp?" +
          list;
        break;
      case "ycsb":
        url =
          "http://10.193.23.21:28883/epribigdata/jsp/tg_zt/xinyi_zxjc/ycsb.jsp?" +
          list;
        break;
      default:
        
        break;
    }
    window.open(url, "_blank")
    console.log(url);
    
    return url;
  }
}
</script>

<style lang="scss" scoped>
.iframes {
  width: 100%;
  height: 100%;
  // padding: 0.2rem 0.24rem 0.24rem 0.24rem;

  .iframes-main {
    width: 100%;
    height: 100%;
    overflow: auto;

    padding-top: 0;
    iframe {
      width: 1920px;
      height: 980px;
    }
  }
}
</style>